package module.building.view.buildingButtonsPanel
{
	import com.darwin.darwinUI.controls.LabelButton;
	import com.darwin.darwinUI.core.UIComponent;
	import com.darwin.darwinUI.general.DarwinFont;
	
	import flash.display.DisplayObject;
	import flash.display.MovieClip;
	
	import module.building.event.BuildEvent;
	import module.main.view.ResourceConst;

	/**
	 * 建筑状态下的操作按钮 
	 * @author hc
	 */
	public class BuildingButton extends LabelButton
	{
		private var _type:int
		private var icon:UIComponent;
		
		/**
		 * 构造方法 
		 * @param type 按钮类型：1是返回建造；2是移动；3是拆除；4是回收；5是确认；6是取消
		 */
		public function BuildingButton(type:int)
		{
			super();
			init();
			this.type = type;
			initData();
		}
		
		private function init():void
		{
			this.backgroundAuto = true;
			this.autoSize = true;
			
			icon = new UIComponent();
			icon.backgroundAuto = true;
			addChild(icon);
		}
		
		override public function onClick():void
		{
			
		}
		
		override public function onMouseDown():void
		{
			
		}
		
		override public function onMouseUp():void
		{
			
		}
		
		override public function onMouseOut():void
		{
			
		}
		
		override public function onMouseOver():void
		{
			
		}

		public function get type():int
		{
			return _type;
		}

		public function set type(value:int):void
		{
			_type = value;
		}
	}
}